package com.sc.nft.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class MyPointsDetailsVO {


    @ApiModelProperty(value = "可用燃料")
    private String amount;

    @ApiModelProperty(value = "冻结燃料")
    private String frozenPoints;

    @ApiModelProperty(value = "释放额度")
    private String usableAmountUpperLimit;

    @ApiModelProperty(value = "已释放数量")
    private String releasePoints;

    @ApiModelProperty(value = "生态释放规则")
    private String ecologyReleaseRule;

    @ApiModelProperty(value = "过期天数")
    private String effectiveDay ="30";




    public void setAmount(BigDecimal amount) {
        this.amount = amount.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }

    public void setFrozenPoints(BigDecimal frozenPoints) {
        this.frozenPoints = frozenPoints.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }

    public void setUsableAmountUpperLimit(BigDecimal usableAmountUpperLimit) {
        this.usableAmountUpperLimit = usableAmountUpperLimit.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }

    public void setReleasePoints(BigDecimal releasePoints) {
        this.releasePoints = releasePoints.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }
}
